package zzps.exeed.kernel.tool;



import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

public class ResourceTool {


    public static URL getResource(String resource,ClassLoader classLoader) {
        return classLoader.getResource(resource);
    }
    public static Enumeration<URL> getResources(String resource,ClassLoader classLoader) {
        Enumeration<URL> resources = null;
        try {
            resources = classLoader.getResources(resource);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return resources;
    }
}
